package com.cn.ycy.proxy.jdk;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class CustomInvocationHandler3 implements InvocationHandler {

  public Object students;

  public CustomInvocationHandler3(Object students) {
    this.students = students;
  }

  @Override
  public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    System.out.println("我是proxy，ido first");
    return method.invoke(students, args);
  }

}
